import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;
import org.omg.CORBA.UnknownUserException;
import org.omg.CORBA.UserException;


public class Test2 {

public Euro two;
	@Before public void init(){
		two = new Euro(50);
	}
	
	
	@Test
	public void testPus() {
		
		two.Plus(25);
		assertTrue("Test Euro hier", 75 == two.getStand());
		assertFalse("Test Euro hier", 75 != two.getStand());
		
	}
	@Test
		public void testMinus() {
	
	    two.Minus(10);
		assertTrue("Test Euro hier", 40 == two.getStand());
		assertFalse("Test Euro hier", 40 != two.getStand());
		
	}
	
	
	@Test
	public void testNew() {

   	assertEquals(50, two.getStand());	
   	assertSame( two,  two.getEuro(two));	
}

	
	@Test(expected = ArithmeticException.class)
	public void testEException () {
		two.getDiv(2);
	}

	
	
}
